package shun.demo.gson.model;

import com.google.gson.annotations.SerializedName;

/**
 * Created by chen on 1/16/14.
 */
public class Result<T> {

    @SerializedName("status")
    private int mStatus;

    @SerializedName("msg")
    private String mMessage;

    @SerializedName("result")
    private T mContent;

    public int getStatus() {
        return mStatus;
    }

    public void setStatus(int status) {
        mStatus = status;
    }

    public String getMessage() {
        return mMessage;
    }

    public void setMessage(String message) {
        mMessage = message;
    }

    public T getContent() {
        return mContent;
    }

    public void setContent(T result) {
        mContent = result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("status=");
        sb.append(mStatus);
        sb.append("\nmessage=");
        sb.append(mMessage);
        sb.append("\ncontent=");
        sb.append(mContent);
        return sb.toString();
    }
}
